import Vue from 'vue'
class Myplugin {
    static install(vm){
        vm.mixins({
            beforeCreate() {
                console.log(00000)
            },
        })
        vm.directives('red',{
            bind(el){
                el.style.color = 'red'
            }
        })
    }
}
//这里是调用
Vue.use(Myplugin)